package com.atguigu.serviceedu.mapper;

import com.atguigu.dto.CourseDto;
import com.atguigu.serviceedu.entity.EduCourse;
import com.atguigu.serviceedu.entity.vo.CoursePublishVO;
import com.atguigu.serviceedu.entity.vo.CourseVO;
import com.atguigu.serviceedu.entity.vo.SiteCourseVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author atguigu
 * @since 2023-07-26
 */
@Repository
public interface EduCourseMapper extends BaseMapper<EduCourse> {
   public List<CourseVO>selectConditonCourse(IPage<CourseVO>page, @Param(Constants.WRAPPER) QueryWrapper<CourseVO>queryWrapper);
   public CoursePublishVO selectCoursePublishVOById(String id);
   public SiteCourseVO selectSiteCourseVOById(String id);
   public CourseDto selectCourseDtoById(String id);
}